using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
using Joy.Erp.BasicArchives.Core.Filters;

namespace Joy.Erp.BasicArchives.Asns
{
    public interface IAsnAppService
    {
        Task<AsnDto> GetAsync(Guid id);
        Task<AsnLineDto> GetChildAsync(Guid id);
        Task<AsnDto> FindAsync(string filter);
        Task<AsnDto> FindBySourceKeyAsync(string sourceKey, string sourceType);
        Task<PagedResultDto<AsnDto>> GetListAsync(FilterRequestDto input);
        Task<PagedResultDto<AsnDto>> QueryAsync(FilterGroupRequestDto input);
        Task<PagedResultDto<AsnLineDto>> QueryChildrenAsync(FilterGroupRequestDto input);
        Task<AsnDto> CreateAsync(AsnCreateDto input);
        Task<AsnDto> UpdateAsync(Guid id, AsnUpdateDto input);
        Task<AsnDto> SubmitAsync(Guid id);
        Task<AsnDto> ApproveAsync(Guid id);
        Task<AsnDto> UnApproveAsync(Guid id);
        Task DeleteAsync(Guid id);
        Task<List<AsnDto>> BatchCreateAsync(List<AsnCreateDto> inputs, bool useBulk = false);
        Task<List<AsnDto>> BatchUpdateAsync(List<AsnBatchUpdateDto> inputs, bool useBulk = false);
        Task BatchDeleteAsync(List<Guid> ids, bool useBulk = false);
    }
}